package com.campsys.service.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;

@Data
public class StudentDTO {
    
    @ExcelIgnore
    private Long id;
    
    @ExcelProperty("用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;
    
    @ExcelProperty("密码")
    private String password;
    
    @ExcelProperty("真实姓名")
    @NotBlank(message = "真实姓名不能为空")
    private String realName;
    
    @ExcelProperty("手机号")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;
    
    @ExcelProperty("邮箱")
    @Email(message = "邮箱格式不正确")
    private String email;
    
    @ExcelProperty("状态")
    private Integer status = 0;  // 0-待审核，1-已审核，2-已禁用
} 